package vip.meeet.dpattern.singleton;

public class HolderSingleton {

    private static class SingletonHolder {
        private static final HolderSingleton singleton = new HolderSingleton();
        private SingletonHolder() {
        }
    }

    private HolderSingleton() {
    }

    public static HolderSingleton getInstance() {
        return SingletonHolder.singleton;
    }
}
